package com.yjd.comm.fundservice.service;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.fundservice.model.FundChannelModel;

import java.util.List;

/**
 * <b>description</b>：资金渠道业务接口<br>
 * <b>time</b>：2018-01-25 17:14:39 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IFundChannelService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public FundChannelModel insert(FundChannelModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(FundChannelModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param fund_channel
	 * @return
	 * @throws Exception
	 */
	public int delete(long fund_channel) throws Exception;

	/**
	 *  申请贷款
	 * @param order_id
	 * @throws Exception
	 */
	public void loanApply(Long org_id, Long order_id)throws Exception;

	/**
	 *  查询所有资金渠道（带缓存）
	 * @throws Exception
	 */
	public List<FundChannelModel> queryAllFundChannel()throws Exception;
}
